package com.lagou.web.controller;

import com.lagou.api.service.HelloService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;
import java.net.InetAddress;

/**
 * @AUTHOR: yb.feng
 * @DATE: 2020/6/15 21:39
 * @DESC:
 */
@RestController
public class HelloController {

    @Autowired
    private HelloService helloService;

    @RequestMapping("/hello")
    public String hello(HttpServletRequest request, String name){
        return helloService.sayHello(name);
    }
}
